//
//  CDate.h
//  lilTerm
//
//  Created by Threese on 2019/7/19.
//  Copyright © 2019 Threese. All rights reserved.
//

#pragma once

#include "IDate.h"

class CDate: public IDate
{
public:
            CDate();
    virtual ~CDate();
    
public:
	virtual int          setDate(int year, int month, int day, int hour, int min, int sec);
	virtual unsigned int getDay();
	virtual unsigned int getMonth();
	virtual unsigned int getYear();
	virtual unsigned int getHour();
	virtual unsigned int getMinute();
	virtual unsigned int getSecond();

	virtual void addTime(int second);
	virtual void addDate(int day);
    
    virtual int compare(IDate *d1, IDate *d2);
    virtual void getToday(void);

	virtual unsigned int operator-(IDate& date); // Get period between two Date

protected:
	unsigned int m_Year, m_Month, m_Day;
	unsigned int m_Hour, m_Min, m_Sec;
};
